package com.jboa.model;

import java.util.HashSet;
import java.util.Set;

/**
 * Function entity. @author MyEclipse Persistence Tools
 */

public class Function implements java.io.Serializable {

	// Fields

	private Integer id;
	private Module module;
	private String functionname;
	private String url;
	private Set roleFunctions = new HashSet(0);

	// Constructors

	/** default constructor */
	public Function() {
	}

	/** minimal constructor */
	public Function(String functionname, String url) {
		this.functionname = functionname;
		this.url = url;
	}

	/** full constructor */
	public Function(Module module, String functionname, String url,
			Set roleFunctions) {
		this.module = module;
		this.functionname = functionname;
		this.url = url;
		this.roleFunctions = roleFunctions;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Module getModule() {
		return this.module;
	}

	public void setModule(Module module) {
		this.module = module;
	}

	public String getFunctionname() {
		return this.functionname;
	}

	public void setFunctionname(String functionname) {
		this.functionname = functionname;
	}

	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Set getRoleFunctions() {
		return this.roleFunctions;
	}

	public void setRoleFunctions(Set roleFunctions) {
		this.roleFunctions = roleFunctions;
	}

}